<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
		<style>
			
		</style>
		<script>
			

			/*
				遍历数组
					1. 下标
					2. 下标对应的值

				forEach()
			*/

			var arr = [1,2,3];

			/*for( var i = 0; i < 10; i++ ){
				console.log(11);
				console.log(11);
				console.log(11);
				console.log(11);
			}*/

			let f = arr.forEach(function (item,index){
				/*console.log(11);
				console.log(11);
				console.log(11);
				console.log(11);*/
				console.log(item,index);
			});

			console.log(f);




		</script>
	</head>

	<body>
		
	</body>
</html>